package com.t3.anistory
{
	import com.t3.fx.DraggableObject;
	import com.t3.client.T3Client;
	import com.t3.tuio.TUIOCursor;
	import com.t3.tuio.TUIOEvent;
	
	import flash.display.Sprite;
	import flash.geom.Rectangle;

	public class PlayButton extends DraggableObject
	{
		[Embed(source='/play.swf')]
		private static var mc_Play:Class;
		
		private var mcPlay:Sprite;
		
		public function PlayButton()
		{
			mcPlay = new mc_Play();
			addChild( mcPlay );
			
			super( new Rectangle( 0, 0, mcPlay.width, mcPlay.height ) );
		}
		
		protected override function repaint():void {}
		
		public override function startDragging( cursor:TUIOCursor ):DraggableObject
		{
			T3Client.waslijn.currentPage.anistory.startAnimation();
			return this;
		}
		
		public override function stopDragging( event:TUIOEvent ):void {}
	}
}